import { type App } from "vue";

export const focus = (app: App) => {
  app.directive("focus", {
    created(el: HTMLElement) {
      nextTick(() => {
        el.focus();
      });
    }
  });
};
